package com.company;

/**
 * @author 杨东
 */
public class ConstructionMethodTest {
    static class  Person{
        private String name= "re";
        private  int age=12;

//        public  Person(String name,int age){
//            this.name=name;
//            this.age= 54;
//        }

        public Person() {

        }

        public void setName(String name) {
            this.name = name;
        }

        public void setAge(int age) {
            this.age = age;
        }

        @Override
        public String toString() {
            return "Person{" +
                    "name='" + name + '\'' +
                    ", age=" + age +
                    '}';
        }

        public String getName() {
            return name;
        }

        public int getAge(int i) {
            return age;
        }
    }
    public static void main(String[] args) {
        Person p = new Person();
        p.setAge(13);
        System.out.println(p.toString());
    }
}
